<!DOCTYPE html>
<html>

<head>
    {% include INC_PATH+"inc/script.html" %}
    <style>
        .editor_textarea{width:100%;height: 500px;}
    </style>
</head>

<body class="gray-bg">
    <div class="wrapper wrapper-content">
        <div class="row">
            <div class="col-sm-9 animated fadeInRight">
                <div class="mail-box-header">
                    <h2>
                        查看留言
                    </h2>
                    <div class="mail-tools tooltip-demo m-t-md">
                        <h3>
                            <span class="font-noraml">标题： </span>{{data.title}}
                        </h3>
                        <h5>
                            <span class="pull-right font-noraml">{{data.create_time|timeformat}}</span>
                            <span class="font-noraml">发件人： </span>{{data.email}}
                        
                        </h5>
                    </div>
                </div>
                <div class="mail-box">
                    <div class="mail-body">
                        <p>
                            {{data.content}}
                        </p>
                    </div>

                    <div class="mail-box-header">
                        <h2>
                           回复留言
                        </h2>
                        <input name="id" value="{{data.id}}" type="hidden" />
                        <textarea name="reply" class="editor_textarea" id="editor_reply" >{{data.reply|htmldecode}}</textarea>
                    </div>
                    <div class="mail-body text-right tooltip-demo">
                        <a href="javascript:void(0)" id="submit_btn" class="btn btn-sm btn-primary" data-toggle="tooltip" data-placement="top" title="Send">保存</a>
                        <a class="btn btn-sm btn-white" href="javascript:void(0)" onclick="javascript:history.go(-1);"><i class="fa fa-reply"></i> 返回列表</a>
                    </div>
                    <div class="clearfix"></div>

                </div>
            </div>
        </div>
    </div>


    <!-- 全局js -->
    {% include INC_PATH+"inc/commonJs.html" %}
    <script src="{{ADMIN_PATH}}js/bootstrap.min.js?v=3.3.6"></script>
    <!-- 自定义js -->
    <script src="{{ADMIN_PATH}}js/content.js?v=1.0.0"></script>
    {% include INC_PATH+"inc/editor.html" %}
    <script src="{{ADMIN_PATH}}js/guestbook.js?v=1.0.0"></script>
</body>

</html>